import { Component, ChangeDetectionStrategy } from '@angular/core';
import { InputTagItem } from '@iux/live/input-tag/interface';

@Component({
  selector: 'app-clear',
  templateUrl: './clear.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ClearComponent {
  value: (InputTagItem | string)[] = ['tag1', 'tag2', 'tag3'];

  valueChange(value: (InputTagItem | string)[]): void {
    console.log(value);
  }

  onChange(data: { value: string[]; tagValue: (string | InputTagItem)[]; e: Event }): void {
    console.log(data);
  }
}
